package net.csdn.business.common.utils;

import net.csdn.business.common.enums.ResultCodeEnum;
import net.csdn.business.common.exception.BusinessException;

/**
 * @author likun
 * @date 2022/12/15 17:37
 */
public class ExceptionUtil {
    public static void throwBizException(ResultCodeEnum resultCode) throws BusinessException {
        throw new BusinessException(resultCode);
    }

    public static void throwBizException(ResultCodeEnum resultCode, String msg) throws BusinessException {
        throw new BusinessException(resultCode, msg, (Object) null);
    }
}